package com.xur.springboot.service.impl;

import com.xur.springboot.entity.employee;
import com.xur.springboot.mapper.EmployeeMapper;
import com.xur.springboot.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<employee> queryEmployee() {
        return this.employeeMapper.queryEmployee();
    }

    @Override
    public List<employee> queryEEdetailById(int id) {
        return this.employeeMapper.queryEEdetailById(id);
    }

    @Override
    public List<employee> queryEEdetailByUser_Id(int user_id) {
        return this.employeeMapper.queryEEdetailByUser_Id(user_id);
    }

    @Override
    public int insertEmployee(employee employee) {
        return this.employeeMapper.insertEmployee(employee);
    }

    @Override
    public int updateEmployee(employee employee) {
        return employeeMapper.updateEmployee(employee);
    }
}
